Component({
  properties: {
    activity: {},
    actTypes: null
  },
  data: {
    status: [],
    // actTypeInfo: null
  },
  methods: {
    gotoDetail() {
      wx.navigateTo({
        url: '/pages/activitydetail/activitydetail?id=' + this.properties.activity.actId,
      })
    }
  },
  lifetimes: {
    attached() {
      this.setData({
        status: getApp().globalData.status
      });
      // if (this.properties.actTypes && this.properties.activity) {
      //   let t = this.properties.actTypes.find(x => x.actType == this.properties.activity.actType);
      //   this.setData({ actTypeInfo: t })
      // }
    }
  }
})